home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / thesrc10.zip / BSD.C < prev    next >
C/C++ Source or Header  |  1992-08-04  |  5KB  |  132 lines

  1. /***********************************************************************/
  2. /* BSD.C -                                                             */
  3. /* This file contains pseudo SystemV functions that are missing in BSD.*/
  4. /***********************************************************************/
  5. /*
  6.  * THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  7.  * Copyright (C) 1991,1992 Mark Hessling
  8.  * 
  9.  * This program is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU General Public License as
  11.  * published by the Free Software Foundation; either version 2 of
  12.  * the License, or any later version.
  13.  * 
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  17.  * General Public License for more details.
  18.  * 
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to:
  21.  * 
  22.  *    The Free Software Foundation, Inc.
  23.  *    675 Mass Ave,
  24.  *    Cambridge, MA 02139 USA.
  25.  * 
  26.  * 
  27.  * If you make modifications to this software that you feel increases
  28.  * it usefulness for the rest of the community, please email the
  29.  * changes, enhancements, bug fixes as well as any and all ideas to me.
  30.  * This software is going to be maintained and enhanced as deemed 
  31.  * necessary by the community.
  32.  *
  33.  * Mark Hessling                     email: M.Hessling@itc.gu.edu.au
  34.  * 36 David Road                     Phone: +61 7 849 7731
  35.  * Holland Park                      Fax:   +61 7 875 7877
  36.  * QLD 4121
  37.  * Australia
  38.  */
  39. #include <stdio.h>
  40. #include <stdlib.h>
  41. #include <curses.h>
  42.  
  43. #include "the.h"
  44. /*-------------------------- external data ----------------------------*/
  45. extern VIEW_DETAILS *vd_current,*vd_first;
  46. extern char current_file;                   /* pointer to current file */
  47. /*---------------------- function definitions -------------------------*/
  48. /***********************************************************************/
  49. int reset_shell_mode()
  50. /***********************************************************************/
  51. {
  52. /*--------------------------- local data ------------------------------*/
  53. /*--------------------------- processing ------------------------------*/
  54.  return(0);
  55. }
  56. /***********************************************************************/
  57. int reset_prog_mode()
  58. /***********************************************************************/
  59. {
  60. /*--------------------------- local data ------------------------------*/
  61. /*--------------------------- processing ------------------------------*/
  62.  return(0);
  63. }
  64. /***********************************************************************/
  65. int doupdate()
  66. /***********************************************************************/
  67. {
  68. /*--------------------------- local data ------------------------------*/
  69.  unsigned short y,x;
  70. /*--------------------------- processing ------------------------------*/
  71.  getyx(CURRENT_WINDOW,y,x);
  72.  refresh();
  73.  wmove(CURRENT_WINDOW,y,x);
  74.  wrefresh(CURRENT_WINDOW);
  75.  return(0);
  76. }
  77. /***********************************************************************/
  78. int wnoutrefresh(win)
  79. WINDOW *win;
  80. /***********************************************************************/
  81. {
  82. /*--------------------------- local data ------------------------------*/
  83. /*--------------------------- processing ------------------------------*/
  84.  wrefresh(win);
  85.  return(0);
  86. }
  87. /***********************************************************************/
  88. int notimeout(win,bf)
  89. WINDOW *win;
  90. bool bf;
  91. /***********************************************************************/
  92. {
  93. /*--------------------------- local data ------------------------------*/
  94. /*--------------------------- processing ------------------------------*/
  95.  return(0);
  96. }
  97. /***********************************************************************/
  98. int wattrset(win,attrs)
  99. WINDOW *win;
  100. long attrs;
  101. /***********************************************************************/
  102. {
  103. /*--------------------------- local data ------------------------------*/
  104. #define A_NORMAL        000000000000L
  105. /*--------------------------- processing ------------------------------*/
  106.  if (attrs == A_NORMAL)
  107.     wstandend(win);
  108.  else
  109.     wstandout(win);
  110.  return(0);
  111. }
  112. #ifdef VMS
  113. /***********************************************************************/
  114. FILE *popen(str,mode)
  115. unsigned char *str,*mode;
  116. /***********************************************************************/
  117. {
  118. /*--------------------------- local data ------------------------------*/
  119. /*--------------------------- processing ------------------------------*/
  120.  return(FILE *)(0);
  121. }
  122. /***********************************************************************/
  123. int pclose(fp)
  124. FILE *fp;
  125. /***********************************************************************/
  126. {
  127. /*--------------------------- local data ------------------------------*/
  128. /*--------------------------- processing ------------------------------*/
  129.  return(0);
  130. }
  131. #endif
  132.